/*
 * @Author: qianmingtian
 * @Date: 2020-06-04 09:04:50
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-06-04 09:50:09
 * @FilePath: \qianmingtian.github.io\code\java\com\zhuandshao\interfaces\SortEmployeeTest.java
 */ 
package com.zhuandshao.interfaces;
import java.util.Arrays;
public class SortEmployeeTest{
    public static void main(String[] args) {
        Employee[] staff = new Employee[3];

        staff[0] = new Employee(2,"wew");
        staff[1] = new Employee(1,"1ew");
        staff[2] = new Employee(3,"3ew");

        Arrays.sort(staff);

        for(Employee e: staff ){
            System.out.println("no " + e.no + " name " + e.name);
        }
        

    }
}